class Dog:
    legs_num = 4
    has_hair = True
    has_tail = True

    def bark(self):
        print(id(self))
        print(f"{self.name}正在狂吠")

    def bite(self, person):
        print(f"{self.name}狗咬{person}")

    def fetch(self):
        print("狗捡球")

alex = Dog()
peiQi = Dog()
alex.name = '李杰'
alex.breed = "斗牛犬"
alex.color = "浅灰色"
alex.age = 5
# alex.name = '李杰'
alex.bark()
alex.bite("yuan")
# print(id(alex))
# peiQi.bark()